package day240801.singleton_recap;

public class Student {
    private static Student instance;

    private  Student(){
        System.out.println("----");
    }

    public synchronized static Student getInstance() {
        if(instance ==null){
            instance =new Student();
        }
        return instance;
    }
}
